//
//  HX_CollectionCactoryTItle.m
//  UI14-作业（礼物说）
//
//  Created by 韩旭 on 16/8/2.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "HX_CollectionCactoryTItle.h"

@interface HX_CollectionCactoryTItle ()
@property (nonatomic, strong) UILabel *lableTitle;
@property (nonatomic, strong) UIButton *btn;

@end
@implementation HX_CollectionCactoryTItle

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _lableTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width / 2, CGRectGetHeight(frame))];
        _lableTitle.text = @"品类";
        _lableTitle.textColor = [UIColor lightGrayColor];
        _lableTitle.font = [UIFont systemFontOfSize:15];
        [self addSubview:_lableTitle];
        _btn = [[UIButton alloc] initWithFrame:CGRectMake(_lableTitle.frame.size.width, 0, self.frame.size.width / 2, CGRectGetHeight(frame))];
        [_btn setTitle:@"查看更多>" forState:UIControlStateNormal];
        _btn.titleEdgeInsets = UIEdgeInsetsMake(0, 100, 0, 0);
        _btn.titleLabel.font = [UIFont systemFontOfSize:15];
        [_btn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
        [self addSubview:_btn];
    }
    return self;
}
@end
